package com.chaopei.day39.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.util.List;

/**
 * @Author Corday 天涯
 * @Date 2022/4/23 21:19
 * 3.多对多关联查询
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Stu {
    private int sid;
    private String name;
    private String gender;
    private Date birth;
    //一个学生可以选多个课程
    private List<Course> courseList;
}
